package entity;

import java.sql.ResultSet;

/**
 * Created by LLAP on 2017/12/25.
 * Copyright (c) 2017 LLAP. All rights reserved.
 */
public class Customer extends Entity {
    public int cid;
    public String name;
    public String gender;
    public String phone;

    public Customer(ResultSet r) {
        super("customer", new String[] {"编号", "姓名", "性别", "电话"});
        super.setDataSource(r);
        super.addData();
    }
    public Customer() {
        this(null);
    }

    @Override
    public boolean isCellEditable(int row, int column) {
        if (column > 0) return true;
        return false;
    }
}
